package com.lmy.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@ServletComponentScan(basePackages = "com.lmy.springboot")
public class Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext ioc
                = SpringApplication.run(Application.class, args);
        //ioc.stop();//项目销毁，会调用LmyListener的销毁相关方法并打印日志
        System.out.println("hello springboot~");
    }
}
